@extends('admin.layout.layout')
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">板块修改</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="panel-body">
    <div class="row">
        <div class="col-lg-6 col-lg-offset-3">
            <form action="{{url('/admin/plate/insert')}}" method="post">
                <input type="hidden" name="id" value="{{ $plate->id }}">
                <input type="hidden" name="repartition_id" value="{{ $plate->partition_id }}">
                <input type="hidden" name="replate_name" value="{{ $plate->plate_name }}">
                <div class="form-group">
                    <label>选择分区</label>
                    <select name="partition_id" class="form-control">
                        @foreach($partition as $k=>$v)
                        <option value="{{ $v->id }}" @if($v->id == $plate->partition_id)
                                                        selected
                                                     @endif
                        >{{ $v->partition_name }}</option>
                        @endforeach
                    </select>
                </div>
                <div class="form-group">
                    <label>板块名</label>
                    <input class="form-control" type="text" name="plate_name" value="{{ $plate->plate_name }}">
                </div>
                {{csrf_field()}}
                <button type="submit" class="btn btn-primary btn-lg" style="margin-left:0px;width:100px">添加</button>
            </form>
            </div>
        </div>
    </div>
@endsection